﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    internal class Program
    {
        /// <summary>
        /// 逻辑运算符
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            // 输出地些逻辑运算的结果
            var num1 = 23;
            var num2 = 10;

            Console.WriteLine("行1：{0}=={1}运算的结果是：{2}", num1, num2, num1 == num2);
            Console.WriteLine("行2：{0}=={1}+13运算的结果是：{2}", num1, num2, num1 == num2 + 13);
            Console.WriteLine("行3：{0}>{1}运算的结果是：{2}", num1, num2, num1 > num2);
            Console.WriteLine("行4：{0}<{1}运算的结果是：{2}", num1, num2, num1 < num2);
            Console.WriteLine("行5：{0}!={1}运算的结果是：{2}", num1, num2, num1 != num2);


            Console.ReadKey();

        }
    }
}
